package com.ftg.learn.chapter08.vehicle;

import lombok.Data;

/**
 * 小车类
 *
 * @author lijiaxin
 * @version 1.0
 * @date 2023/7/25 15:35
 */
@Data
public class Car extends Vehicle1{

    int passenger_load;

    public Car(){
        this.setPassenger_load(4);
    }

    public void number(){
        System.out.println("小车载客"+getPassenger_load()+"个人");
    }

}
